package chenjun.mydatabindingdemo.util;

/**
 * Created by n6 on 2016/9/30.
 */
public class DataChange {

    public static String getTitle(String str){
        return str.length() >= 6 ? str.substring(0,6) +"..." : str;
    }

    public static boolean isGif(String str){
        if (str == null){
            return false;
        }
        return str.endsWith("gif");
    }

}
